package org.smile.design.proxy.staticMode;

public class CarStore implements Behavior{
    private Driver target;

    public CarStore(Driver driver){
        this.target = driver;
    }

    @Override
    public void buyCar() {
        System.out.println(this.getClass().getSimpleName()+" buy a car for a driver");
        target.buyCar();
        System.out.println(this.getClass().getSimpleName()+" finish job");
    }
}
